Skip to main content

GradientOperationScale

Type

statement

Summary

Apply a scale to a gradient paint.

Syntax

scale <mGradient> by <mScale>

Description

Scales the transform of mGradient by mScale.

Parameters

NameTypeDescription

mScale

An expression which evaluates to a list of numbers.

mGradient

An expression which evaluates to a gradient.

Examples

// Create new gradient paint
variable tGradient
put linear gradient with ramp [gradient stop at 0 with color [0,0,0], gradient stop at 1 with color [1,1,1]] into tGradient

// Scale the gradient
scale tGradient by [2,2]
Thank you for your feedback!

Was this page helpful?